package com.guigu.dealservice.feign;

import com.guigu.dealservice.dto.Equipment;
import com.guigu.dealservice.dto.EquipmentType;
import com.guigu.dealservice.vo.UserCollectionEquipmentVoPC;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "service-equipment")
public interface MyEquipmentFeign {

    @GetMapping("/equipmentservice/equipmenttype/selectEquipmentTypeById/{id}")
    EquipmentType queryEquipmentTypeById(@PathVariable("id") Long id);

    @PostMapping("/equipmentservice/equipment/selectEquipmentAndImageAndType/{id}")
    Equipment queryEquipmentAndImageAndType(@PathVariable("id") Long id, @RequestBody UserCollectionEquipmentVoPC userCollectionVoPC);

    @PostMapping("/equipmentservice/equipment/selectEquipmentAndImageAndType2/{id}")
    Equipment queryEquipmentAndImageAndType2(@PathVariable("id") Long id);

    @PutMapping("/equipmentservice/equipment/editEquipmentUserId/{id}/{equipmentId}")
    String editEquipmentUserId(@PathVariable("id") Long id,@PathVariable("equipmentId") Long equipmentId);


    @GetMapping("/equipmentservice/equipment/selectEquipmentByIdFeign/{id}")
    Equipment selectEquipmentByIdFeign(@PathVariable("id") Long id);

    /**
     *  前台-根据类型id查询设备类型设置求购 信息
     * @param id
     * @return
     */
    @GetMapping("/equipmentservice/equipmenttype/selectEquipmentTypeById_PC/{id}")
    EquipmentType queryEquipmentTypeById_PC(@PathVariable("id") Long id);


    @PutMapping("/equipmentservice/equipment/editequipmentStatusChengJiao/{id}")
    String editequipmentStatusChengJiao(@PathVariable("id") Long id);

    @GetMapping("/equipmentservice/equipment/selectEquipmentDxById/{id}")
    Equipment selectEquipmentDxById(@PathVariable("id") Long id);
}
